package site.icesky.springboot.feign.controller;

import com.alibaba.fastjson.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.MDC;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import site.icesky.springboot.feign.config.FeignConfigService;

import java.util.HashMap;

/**
 * @ClassName: SpringRedisController <br>
 * @Description: 测试jedis <br>
 * @Package: site.icesky.springredis.controller <br>
 * @author: suitianmou <br>
 * @Date: 2020/5/19-23:54 <br>
 * @version: 1.0 <br>
 * @see <br>
 * @since (从产品的哪一个版本此类被添加进来 ( 可选))<br>
 * 修改历史: <br>
 * 修改时间             修改人           版本变更           修改说明<br>
 * -----------------------------------------------------<br>
 * <br>
 */
@RestController
public class FeignController {

    private static final Logger logger = LoggerFactory.getLogger(FeignController.class);

    @Autowired
    FeignConfigService feignConfigService;

    @RequestMapping(path="/feign")
    @ResponseBody
    public JSONObject feignConn() {

        JSONObject sendMap;
        sendMap = new JSONObject();

        sendMap.put("key", "value");



        return feignConfigService.feigSend(sendMap);
    }

}
